package collection;

import java.util.HashSet;
import java.util.Set;

public class SetDemo {
    public static void main(String[] args) {
        Set<Point> s = new HashSet<>();
        s.add(new Point(1, 20));
        s.add(new Point(500, 60));
        s.add(new Point(800, 7));
        s.add(new Point(79, 8));
        System.out.println(s);

        boolean  b = s.add(new Point(1,20));
        System.out.println(b);
    }
}
